package Entitys;


import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrador
 */
@Entity
public class Director extends Person {
    
    @OneToMany(mappedBy = "manager")
    private List<Movie> moviesDirected;
    
    public Director(){}

    /**
     * @return the moviesDirected
     */
    public List<Movie> getMoviesDirected() {
        return moviesDirected;
    }

    /**
     * @param moviesDirected the moviesDirected to set
     */
    public void setMoviesDirected(List<Movie> moviesDirected) {
        this.moviesDirected = moviesDirected;
    }
}
